#ifndef OCVTOOLS_H
#define OCVTOOLS_H

#include <highgui.h>
#include <QPoint>

class HSVColor;

class OCVTools
{
public:
    static HSVColor pixelColor(IplImage *hsvImage, int x, int y);
    static bool isPixelInRange(IplImage *hsvImage, const HSVColor &refColor, int x, int y);

    static void maskPixel(IplImage *destImage, int x, int y, int r, int g, int b);
    static void createMask(IplImage *hsvImage, IplImage *mask, const HSVColor &refColor);
    static int maskMatchingPixels(IplImage *hsvImage, IplImage *destImage, const HSVColor &refColor);
    static void createChessboard(IplImage *chessboard);
};

#endif // OCVTOOLS_H

